package homework;

import java.util.Arrays;

public class Atest {

    public static void main(String[] args) {
        int[] arr = { 3, 6, 6, 18, 32, 67, 88, 95 };
        System.out.println(Arrays.binarySearch(arr, 18));
        System.out.println(Arrays.binarySearch(arr, 6));
        System.out.println(Arrays.binarySearch(arr, 3));
        System.out.println(Arrays.binarySearch(arr, 19));
        System.out.println(Arrays.binarySearch(arr, 100));
        System.out.println(Arrays.binarySearch(arr, 2));
        System.out.println(Arrays.toString(arr));
        
    }

}
